package com.ruiysoft.entity.sys;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author huazengguang
 * @since 2018-11-22
 */
@TableName("sys_shop_pay_platform")
@Accessors(chain = true)
@Setter
@Getter
public class SysShopPayPlatform extends Model<SysShopPayPlatform> {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

//    @TableField("shop_id")
//    private Long shopId;

    @TableField("app_id")
    private String appId;

    private String secret;

    @TableField("pay_key")
    private String payKey;

    @TableField("mch_id")
    private String mchId;

    @TableField("certificate_url")
    private String certificateUrl;

    @TableField("create_time")
    private Date createTime;

    @TableField("update_time")
    private Date updateTime;

    @TableField("delete_flag")
    private Boolean deleteFlag;

    private Integer version;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "SysShopPayPlatform{" +
        "id=" + id +
//        ", shopId=" + shopId +
        ", appId=" + appId +
        ", secret=" + secret +
        ", payKey=" + payKey +
        ", mchId=" + mchId +
        ", createTime=" + createTime +
        ", updateTime=" + updateTime +
        ", deleteFlag=" + deleteFlag +
        ", version=" + version +
        "}";
    }
}
